

def write_to():

    with open("t1.log","wb") as file:
        file.write("abc\r\n".encode('utf-8'))
        file.write("你好\r\n".encode('utf-8'))
        file.write("111\r\n".encode('utf-8'))

write_to()